const router = require('koa-router')();

/**
 * @swagger
 * /signout:
 *   get:
 *     summary: 用户退出接口
 *     description: 用户注销登录信息的应用
 *     tags:
 *       - 用户退出
 *     produces:
 *       - application/json
 *     responses:
 *       200:
 *         description: 登出成功
 */
router.get('/signout', async(ctx, next) => {
    ctx.session = null;
    console.log('登出成功')
    ctx.body = true
})

module.exports = router